/**
 * ===========================================================================
 *
 *       Filename:  handle.h
 *
 *    Description:  learn more
 *
 *        Version:  1.0
 *        Created:  04/14/09 22:24:17
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Author (mn), Email@xxx.xxx
 *        Company:  xxx xxx
 *
 * ===========================================================================
 */

#ifndef __HANDLE_H__
#define __HANDLE_H__

typedef int (* msg_handler_t)(const struct user_session_t *session, const char *data, const int len);

int msg_init();
int msg_add(int msgnum, msg_handler_t handler);
int msg_del(int msgnum);
int msg_exec(struct user_session_t *session);

#endif // __HANDLE_H__
